const crypto = require("crypto");

function encrypt(str) {
    return crypto.createHmac("sha256", "12321").update(str).digest("hex");
}

const encoded = encrypt("123456");
const encoded1 = encrypt("123456");
console.log(encoded, encoded1);
